//
//  PhotoCollectionViewCell.m
//  Business Club
//
//  Created by 尹宁 on 16/4/25.
//  Copyright © 2016年 范琦. All rights reserved.
//

#import "PhotoCollectionViewCell.h"

@implementation PhotoCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        _imageView = [[UIImageView alloc] init];
        _imageView.backgroundColor = [UIColor colorWithWhite:1.000 alpha:0.500];
        _imageView.contentMode = UIViewContentModeScaleAspectFill;
        [self addSubview:_imageView];
        _delegateBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        _delegateBtn.frame = CGRectMake(self.frame.size.width - 25, 0, 25, 25);
        [_delegateBtn setBackgroundImage:[UIImage imageNamed:@"删除"] forState:UIControlStateNormal];
        [self addSubview:_delegateBtn];
        self.clipsToBounds = YES;
    }
    return self;
}

- (void)layoutSubviews{
    [super layoutSubviews];
    _imageView.frame = self.bounds;
}
@end
